package com.arsn.myf.flow.service;

import com.arsn.myf.flow.entity.FlowModel;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * FlowEngineService 服务接口层
 * @author zhongrj
 * @since 2022-10-18
 */
public interface FlowEngineService extends IService<FlowModel> {


    /**
     * 分页
     * @param flow flow 实体
     * @param page page 对象
     */
    IPage<FlowModel> selectPageDeptList(Page<FlowModel> page, FlowModel flow);

    /**
     * 部署模型
     * @param flow 模型id
     */
    boolean deployModel(FlowModel flow);

    /**
     * 获取流程节点图
     * @param processDefinitionId 流程定义id
     * @param processInstanceId 流程实例id
     * @return
     */
    Map<String,Object> processView(String processDefinitionId,String processInstanceId);
}
